package com.stefanini.pe.bbva.bp.in.to;

import java.io.Serializable;
import java.util.List;

public class ListaGenerica implements Serializable{

	private static final long serialVersionUID = -4376020227653595878L;
	public List subLista;
	public Object obj;

	public List getSubLista() {
		return subLista;
	}

	public void setSubLista(List subLista) {
		this.subLista = subLista;
	}

	public Object getObj() {
		return obj;
	}

	public void setObj(Object obj) {
		this.obj = obj;
	}

	@Override
	public int hashCode() {
		final int PRIME = 31;
		int result = 1;
		result = PRIME * result + ((obj == null) ? 0 : obj.hashCode());
		result = PRIME * result + ((subLista == null) ? 0 : subLista.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		final ListaGenerica other = (ListaGenerica) obj;
		if (this.obj == null) {
			if (other.obj != null)
				return false;
		} else if (!this.obj.equals(other.obj))
			return false;
		if (subLista == null) {
			if (other.subLista != null)
				return false;
		} else if (!subLista.equals(other.subLista))
			return false;
		return true;
	}

	public ListaGenerica(List subLista, Object obj) {
		super();
		this.subLista = subLista;
		this.obj = obj;
	}
	
	public ListaGenerica() {
		super();
	}

}
